<f:view xmlns="http://www.w3.org/1999/xhtml"
	 xmlns:f="http://java.sun.com/jsf/core"
	 xmlns:h="http://java.sun.com/jsf/html"
	 xmlns:p="http://primefaces.org/ui"
	 xmlns:pm="http://primefaces.org/mobile"
	 contentType="text/html">
 <pm:page title="Grocery Lists">
 <pm:view id="main">
 <pm:header title="Confirm new password">
  </pm:header>
 <pm:content>
 
     <h3>Reset password</h3>
     <p:messages id="messages" autoUpdate="true"/>
     <h:form id="updatePassword">
		<pm:field>	
			<h:outputText for="pass" value="Password: "/>
			<p:password id="pass" value="#{passwordBean.password}"/>
		</pm:field>
		<pm:field>	
			<h:outputText for="pass2" value="Confirm Password: "/>
			<p:password id="pass2" value="#{passwordBean.confirmPassword}"/>
		</pm:field>
		<pm:buttonGroup orientation="horizontal">
		    <h:commandButton id="confirmPassword" value="OK" action="#{passwordBean.resetPassword}"/>
		    <h:commandButton id="cancel" value="Cancel" action="resetpassword"/>
		</pm:buttonGroup>
	</h:form>
 </pm:content>
 </pm:view>
 </pm:page>

</f:view>